from selenium import webdriver

# waits
from selenium.webdriver.common.by import By
from selenium.webdriver.remote.webelement import WebElement
from selenium.webdriver.support import expected_conditions
from selenium.webdriver.support.wait import WebDriverWait

driver = webdriver.Chrome(executable_path='D:\driver\chromedriver.exe').get('https://www.movie.douban.com')

try:
    element = WebDriverWait(driver, 10).until(
        expected_conditions.presence_of_element_located(
            (By.CLASS_NAME, 'item'))
    )
    assert isinstance(driver, WebElement)
    for item in driver.find_elements_by_class_name('item'):
        print(item)

finally:
    driver.quit()